home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / DSOs / forum93 / case3 / func3.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  142 b   |  14 lines

  1. struct info {
  2.     int x;
  3.     int y;
  4. };
  5.     
  6. int func(struct info *ir, int z) {
  7.  
  8.     if (ir->x > 0) {
  9.     ++ir->y;
  10.     }
  11.     return (ir->y+z);
  12. }
  13.  
  14.